#!/bin/bash

# 服务端 配置tapo
export PRECONFIGURED_TAPIF=tap0
sudo ip tuntap add dev $PRECONFIGURED_TAPIF mode tap user `whoami`
sudo ip addr add 192.168.100.2/24 dev $PRECONFIGURED_TAPIF
sudo ip link set $PRECONFIGURED_TAPIF up
